<template>
  <div>
    <p>自定义输入框</p>
    <input :value="modelValue" @input="submit" />
  </div>
</template>

<script>
export default {
  emits: ["update:modelValue"],
  props: {
    modelValue: {
      default: null,
      type: String,
    },
  },
  methods: {
    submit(event) {
      this.$emit("update:modelValue", event.target.value);
    },
  },
};
</script>

<style></style>
